import request from '@/utils/request'
import fileRequest from '@/utils/fileRequest';
/**
 * 获取全部列表
 * @param params
 * @returns {*}
 */
export function getList(params) {
  return request({
    url: '/getCompanyList',
    method: 'GET',
    params
  })
}

/**
 * 获取融资阶段列表
 * @param params
 * @returns {*}
 */
export function getFinancingApi() {
  return request({
    url: '/getFinancing',
    method: 'GET'
  })
}

/**
 * 获取企业规模列表
 * @param params
 * @returns {*}
 */
export function getScaleApi() {
  return request({
    url: '/getScale',
    method: 'GET'
  })
}



/**
 * 获取职位列表
 * @param params
 * @returns {*}
 */
export function getJobPublishListApi(params) {
  return request({
    url: '/getJobPublishList',
    method: 'GET',
    params
  })
}

/**
 * 职位审核列表
 * @param params
 * @returns {*}
 */
export function getPublishListByModelApi(params) {
  return request({
    url: '/getPublishListByModel',
    method: 'GET',
    params
  })
}

/**
 * 职位审核
 * @param params
 * @returns {*}
 */
export function toExaminePublishApi(params) {
  return request({
    url: '/toExaminePublish',
    method: 'GET',
    params
  })
}


/**
 * 查询职位
 * @param params
 * @returns {*}
 */
export function findPublishListByIdApi(params) {
  return request({
    url: '/findPublishListById',
    method: 'GET',
    params
  })
}

/**
 * 获取行业分类列表
 * @param params
 * @returns {*}
 */
export function getFindJobNameListApi(params) {
  return request({
    url: '/getFindJobNameList',
    method: 'GET',
    params
  })
}
/**
 * 获取行业一级分类
 * @param params
 * @returns {*}
 */
export function getFindJobNameOneApi(params) {
  return request({
    url: '/getFindJobNameOne',
    method: 'GET',
    params
  })
}

/**
 * 获取行业二级分类
 * @param params
 * @returns {*}
 */
export function getFindJobNameTwoApi(params) {
  return request({
    url: '/getFindJobNameTwo',
    method: 'GET',
    params
  })
}

/**
 * 编辑分类
 * @param params
 * @returns {*}
 */
export function addFindJobNameApi(data) {
  return request({
    url: '/addFindJobName',
    method: 'POST',
    data
  })
}

/**
 * 根据ID获取分类
 * @param params
 * @returns {*}
 */
export function getFindJobNameByIdApi(params) {
  return request({
    url: '/getFindJobNameById',
    method: 'GET',
    params
  })
}
/**
 * 删除
 * @param params
 * @returns {*}
 */
export function deleteFindJobNameApi(params) {
  return request({
    url: '/deleteFindJobName',
    method: 'GET',
    params
  })
}

/**
 * 导入
 * @param params
 * @returns {*}
 */
export function uploadFileApi(data) {
  return request({
    url: '/adminUpload/importTemplateFile',
    method: 'POST',
    data
  })
}

/**
 * 下载模板
 * @param params
 * @returns {*}
 */
export function downloadFile() {
  return request({
    url: '/adminUpload/downloadImportTemplateFile',
    method: 'get',
  })
}
/**
 * 修改状态
 * @param params
 * @returns {*}
 */
export function editFillApi(params) {
  return request({
    url: '/editFill',
    method: 'GET',
    params
  })
}






